<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-mailtitle" class="control-label col-xs-12 col-sm-2">{:__('Mailtitle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mailtitle" class="form-control" name="row[mailtitle]" type="text" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label for="c-userid" class="control-label col-xs-12 col-sm-2">{:__('Userid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userid" class="form-control" name="row[userid]" type="text"><br/><span style="color:red;">*单次最多发送20人，每个ID之间用英文","隔开，不填写则默认发送全部玩家</span>
        </div>
    </div>
    <div class="form-group">
        <label for="c-starttime" class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-starttime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:date('Y-m-d H:i:s')}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label for="c-endtime" class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label for="c-abstract" class="control-label col-xs-12 col-sm-2">{:__('Abstract')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-abstract" class="form-control" name="row[abstract]" type="text" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mailcontent" class="control-label col-xs-12 col-sm-2">{:__('Mailcontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-mailcontent" class="form-control" name="row[mailcontent]" cols="50" rows="10" data-rule="required"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">附件:</label>
        <div class="col-xs-12 col-sm-8">                        
            <label for="row-no"><input id="row-no" name="rowattach" type="radio" value="0" checked /> 无</label> &nbsp;&nbsp;
            <label for="row-yes"><input id="row-yes" name="rowattach" type="radio" value="1" /> 有</label>
        </div>
    </div>
    <div class="form-group ylang hide">
        <label for="c-giftcode" class="control-label col-xs-12 col-sm-2">{:__('Giftcode')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-giftcode" class="form-control" name="row[giftcode]" type="text" style="width:35%;"><span>&nbsp;*填写礼包码</span>
        </div>
    </div>
    <div class="form-group ylang hide">
        <label for="c-roomcard" class="control-label col-xs-12 col-sm-2">{:__('Roomcard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-roomcard" class="form-control" name="row[roomcard]" type="number" style="width:35%;"><span>&nbsp;*填写房卡数量</span>
        </div>
    </div>


    <div class="form-group">
        <label for="c-Remarks" class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-Remarks" class="form-control" name="row[Remarks]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script>
</script>
